package cn.ruihusoft.ql.client;

import cn.ruihusoft.ql.pojo.Response;
import cn.ruihusoft.ql.pojo.system.SystemLogFrequency;
import cn.ruihusoft.ql.pojo.system.SystemResponse;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Put;

public interface SystemClient extends BaseAuthClient {

    @Get("/system")
    Response<SystemResponse> systemInfo();

    @Get("/system/log/remove")
    Response<SystemLogFrequency> logFrequency();

    @Put("/system/log/remove")
    Response<String> updateLogFrequency(@JSONBody SystemLogFrequency request);

    @Put("/system/update-check")
    Response<String> updateCheck();

    @Put("/system/update")
    Response<String> update();

}
